import React from 'react'
import { Outlet, NavLink } from 'react-router-dom'
import style from './Home.module.scss'
const Home = () => {
  return (
    <div className={style.home}>
        <nav>
            <NavLink to="/child1">页面1</NavLink>
            <NavLink to="/child2">页面2</NavLink>        
        </nav>
        <main>
            <Outlet />
        </main>
    </div>
  )
}

export default Home